Fixed command line option parsing on windows