Fix ruby 1.8.7 support

The new configuration format didn't work with ruby 1.8.7 due to unsorted
hashes.