Changed build script to support pullrequest builds on Teamcity