Update to avoid two trailing ":" in getopt.