create pidfile dir if it doesn't exist