getopt() modified