Correctly calculate relative script path when path == relative_paths.