clean up .directory files and gitignore