Switch to system getopt