upadated init.d script to be the same across all linux distros