create directory for pid file