create subdirectories for the debug output. Fixes #31