fix bugs on INIT script: cannot find PID file