Fix coverity builds

This was originally [trac #10636](http://trac.mantidproject.org/mantid/ticket/10636).

**To test:** see that the [build](http://builds.mantidproject.org/view/Static%20Analysis/job/coverity_build_and_submit/) is actually getting the results to [coverity](https://scan.coverity.com/) again.