fixed some pidfile path issues