added fix for main branch being built with the pull requests
fixed bug in call to teamcity
removed if statement that wasn't needed
Merge pull request #169 from FireBall1725/rv2

added fix for main branch being built with the pull requests