getopts bug