fixed init.d script
correctly log errors to stderr
fixed reading the config path