add prereq check for extended getopt (#3944)