Unixify dest so detectDestType works on windows

Also unixify src for symmetry and so we don't have to unixify the
whole path again after join.