Prevent flaky tests by restoring the CI_CAPTURE variable

Closes #125
Merge pull request #138 from shepmaster/flaky-capture

Prevent flaky tests by restoring the CI_CAPTURE variable