Some minor fixes (permissions etc).

Smemory.rb: Old fix for memory sizes. Used and free RAM is now
written to database file.
Version 2.20
- Compatibility with Ruby 1.9