Some dynamic configuration hack in ruby