Add file extension for files containing a dot

Currently it wont add extension if filename contains a dot,
so compiling `foo.bar.jade` template does not work.

Consider compiling `foo.jade` template which contains `include ./foo.bar` statement.
It is of course "fixable" by using `include ./foo.bar.jade` but this way templates becomes hairy.