diplomka: make it actually work with clean directory