Fix code that tests for RAM and Swap size