Convert back to forward slashes in getcwd closes #4112.

@tivnet, can you confirm? I don't have windows.
KR locale