Make sure we remember any extra params
Make chdir/tmpdir/homedir take backslashes
Various Win32 related fixes