Kompile temp dirs

Resolves #1059 .