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)
Merge pull request #10 from cthayer/patch-1

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