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.