Fixed creation of temp dir