added memory detection code

see yast/yast-packager#33

- 3.1.19
Merge pull request #179 from yast/ram_detection

added memory detection code