get_path will parse  and return the path