Compiler was writing new content to files on paths that wasn't findable by the compressor.

I didn't manage to write any good test cases for this due to the bug being quite complicated to reproduce.

See #228