sh-scripting: fix error in getopts