fix handling of "--" with getopt_long argv permutation