bugfix in engine.rb: use Ruby variable, not ERB