Add method to improve osname output in template.