New version of elasticsearch runs in foreground by default. Added -d flag to control script to correctly daemonize the process