fixing stupid get_relative_dir error