mem_info.rb: Refactor the code and have it not fail on systems without /...

...proc/meminfo

Refactored the code and made it not bomb on a Mac (the regex didn't match "" and the [0] bombed)