Added __dirname, __filename pseudo-globals. Fixes #733.