fixed bug; check hostname to get right mysql pid file