Changes suggested by:
http://blog.lavoie.sl/2012/09/configure-elasticsearch-on-a-single-host.html