fix path sep in file name for get_path