fixed wrong check for clean git working-dir