Improve pid and log files settings

* when processes > 1 the pid file has its increment before the extension and all pid files have their increment (not just after the first) ;
* the log file can be configured ;
* the environment is inferred.

Inspired from mperham/sidekiq#1539 by @seuros