Update init.d script

to fix some paths issues.