TS-2611 Fix getopt usage for OmniOS