use get_parent_dir fixed path bug.