Fixed Pi revision detection