Fix bug, when there was no temp/cache directiry