getopt fix submitted by old maintainer