Fix get_shallowest_filepath in case of path not found.