Stop Ruby 1.8 leaving lots of files open
Refactored config API