init: Properly detect hardware revision