Stub dir and fix specs

- make Dir[] usage explicit in tests, otherwise using real paths in specs is very confusing
- fix how files are requires so tests can be run in isolation
- use NotImplemented error instead of custom "abstract" exception