Using ruby-configurable for cleaner access

Tidying up configuration code