update gitignore and keep tmp/cache directory