fix getopt path on darwin