Expose fail count to shell environment

Also, run the tests in the packager. The packager will automatically run the regression test suite prior to packaging a release. The package will not build if there is at least one fail from the regression tests.