Check if pid file path is directory