Add ability to check if running in MINGW32

Make . alias behave according to OS