Remove the pid file when killed.
Fix the pwd support for configuration.