add --pid-file-dir option for setting location of pid file.

Option for changing pid location. It's only enable when `--daemon` option is specified.