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.
Merge pull request #751 from greezybacon/feature/package-run-tests

Expose fail count to shell environment

Reviewed-By: Peter Rotich <peter@osticket.com>