fixing bug with teamcity script
Merge pull request #888 from apolishch/master

Bugfix for teamcity script