Work around lazy config initialisation issues in Rails