fix resource paths in base freemarker template