Removed unwanted files from build dir and minor fix to enable teamcity r...

...uns