htp/test_main: Fix crash if home not found; now throws exception instead.  Fix issue with teardown not working properly in error conditions.  Added support for specifying home via environmental variable.
htp/test_main: Fix crash if home not found; now throws exception instead.  Fix issue with teardown not working properly in error conditions.  Added support for specifying home via environmental variable.

b1v1r/ironbee,b1v1r/ironbee,ironbee/ironbee,b1v1r/ironbee,ironbee/ironbee,ironbee/ironbee,ironbee/ironbee,b1v1r/ironbee,ironbee/ironbee,b1v1r/ironbee,b1v1r/ironbee,b1v1r/ironbee,b1v1r/ironbee,ironbee/ironbee,b1v1r/ironbee,b1v1r/ironbee,ironbee/ironbee,ironbee/ironbee,b1v1r/ironbee,ironbee/ironbee,b1v1r/ironbee,ironbee/ironbee,ironbee/ironbee,ironbee/ironbee