Fix to address kend issues in Ruby 1.8.7

The template substitution calls were causing issues on Ruby 1.8.7, moving them to separate lines.