Clean the directory and augment .gitignore.