Use getopt() instead of homebrew()