Fixes path_lookup() for "/" and LOOKUP_PARENT