Detect OS (Windows or Linux) and use other command line for flashing.