Added compatilibility with MSYS2 on Windows

Your script works perfectly out-of-the box on Windows running the MSYS2 subsystem. Great work Dirk!