Get travis-ci working #2

* More robust loading of configuration files (no hardcoded config directory)
* require rubygems only if RUBY_VERSION > 1.9
* on demand loading of configuration file