Fix while getopts loop