fixes to debian init script, but better use upstart