clean git and system directory