fix test suite
support __dirname and __filename variables
Release 0.8.1