added pidfile and normalize script path so start-stop-daemon works correctly