Add tmp folder checking