This should also be copied to the `getcwd` for windows.