bin/elasticsearch: fix MacOS errors when daemonizing

Signed-off-by: Thilo Fromm <github@thilo-fromm.de>