Small changes to works on Linux + Ruby 2

This small changes make the templates runs correctly on linux using ruby 2.0