template.rb changed to use correct base path for scripts