Fix FTBFS in templates.rb when site.dest doesn't exist in older ruby versions