Added TerraFirmaCraft, tidied up $MEM checks