Supporting custom template extension

Fix missing escape
Merge branch 'master' of github.com:matteoagosti/handlebars.js into matteoagosti-master

Conflicts:
	bin/handlebars
Escape passed regex