set a pidfile directory