Create subdirectories if necessary.

Fixes the last failing test.
Merge pull request #106 from rampantmonkey/makeflow-linker-test-failure

Create subdirectories if necessary.