fix is_running check to properly treat empty pidfile as not running