Some scaffolding tasks where reading dirs.

Add failing tests.
Fix bug (premature optimization).
Merge branch 'master' of github.com:IndigoUnited/automaton