Split getopt off into its own package