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)