fix getopts issue in redhat