fixes require, closes #78

Being able to require ejs files would be useful for build systems based on Node.js (such as one I'm working on atm).  Anyway, it was a simple fix, should have no effect on ejs otherwise (e.g. likelihood of regressions is nil), and I've added a test for it.  This PR would close #78.