new function normalize_paths