Fixed jade filename issue when using template.
Merge pull request #2 from yyang/master

Fixed jade filename issue when using template.