versioncontrol: Move to_podir_path outside of versioncontrol