get path correctly for running the daemon from /etc/init.d
get path correctly for running the daemon from /etc/init.d

This change is necessary to allow running the daemon script from /etc/init.d (via symlink)
secondimpression/newrelic_elasticsearch_agent