Prevent flaky tests by restoring the CI_CAPTURE variable

Closes #125