Getting a path compatible with what `path.dirname()` is returning later on. This is definitely hackish and brittle. The idea is that each of the generated files needs to know the relative path from its destination path to the original path. I'm looking for options here.