fix find real_path bug