This call won't be necessary if get_target_path does the right thing to begin with.