Really works now

The program worked for the same output directory, but had issues when building
the directory structure in a different location.