quick fix
Merge pull request #39 from chid/fix

fixing bug, ext is not defined.