Reset OPTIND between getopts invocations

Bash doesn't automatically reset `$OPTIND` between unrelated invocations
of `getopts`.  Which means multiple unrelated calls to `getopts` can
cause badness.  Don't do that.
Merge branch 'bug/reset-optind'

Conflicts:
	install.sh
Add Cygwin's .startxwinrc