sync-to-perforce is now called submit and fixed the gitdir check a little bit