migrate getopt to getopts for windows in windows_generation.sh : git bash does not come with getopt