Modifying gem for new hosting situation