[Build] Try fixing error by adding git --work-tree to be able to run it from TeamCity