New default file, Don't close cmd on windows

* Added several default credential file check
* Detect Windows and perform accordingly by not closing cmd