Remove all possible cd calls, refs #1971
Make sure cd call allows switching drives on windows, fixes #1971
Add workaround for msysgit failing to handle symlinks on windows, fixes #1048, fixes #1418