fix some path munging that breaks when mv is called on different mounted filesystems