Improve RAM_CHECK to deal with < 150 MiB RAM