.do files of the form do/a.do were not found

First commit:
With a 'do/default.do' file, or 'do/a.do' file, the command 'redo a.do' did not work.
Note: in the test 107-dodir, the line 'mkdir -p x/y' seems unnecessary.

Commits 2 & 3: tiny cleanups