Fixed detecting jail status.