Changed build scripts to support pull request builds on teamcity