elasticsearch: fix darwin, needs getopt