Fix #644 get_path() problem