In fix_path_case, check we have the same folder depth before returning