Correctly handle invalid options when GNU getopt(1) is unavailable.