Fix FTBFS in templates.rb when destination folder doesn't exist