Creation of temp files in specified directory