This will be used to more accurately handling command resolution and path matching when a new root directory is specified.