Fix erb check

This should fix #9 and #8 

It's also a fix for rails erb (http://timelessrepo.com/block-helpers-in-rails3)