Reduce the parts of the path required when a path does not exist