add a couple of bugs about posix compliance and the use of getopts