fixing old_path with dot