remove git directory if it exists