Added support for instance name in PID file name