tsj: fix automatic ROM and device selection