Fix task misuse and add condition to teamcity UsingTasks's