More improvements:

- actually compute the depth of compiled directories
- create a function for normalizing and concatenating dirs at the same time
- create a test case that tests output of an actual real life example