Improve pid and log files settings

* the pid file has its increment before the extension when processes > 1
* the log file can be configured.
* the environment is inferred.

Inspired from https://github.com/mperham/sidekiq/pull/1539