Little bugfixes. pid.filename config property added