The codepath does not appear to have been tested; mv on Win32 is move, and substitute has 4 arguments instead of 3.