Add .gitignore and and directory temp_dirs.