win: Fix annoying vc warnings.
win: Remember old path name when doing renaming.
win: Pass normalized path to js.