Fixed the way decorator template filename is built. refs #315