- The reading of the boot script is a relic from the days when not all application keys were accessible through the API - The find_hooks() function would pick up hooks that shouldn't run, and miss some that should. - Added a few eunit tests for find_hooks() and get_env() - Doing so, spotted a bug in the variable expansion.
On solaris flavors, `which` has sometimes poor behavior of not returning proper exit codes or printing errors to STDOUT rather than STDERR. All of this is to say, the makefile didn't behave correctly on Solaris. $(REBAR) ended up being set to "rebar not found" which made the compile target less than happy.
Add special handling in the rebar.config.script file for rebar3. Currently rebar3 does not have escriptize support and a project using rebar3 and an dependent application that relies on the setup application fails to build when the post hook attempts to execute. If the escript script file name has a base of rebar3, revert to the default behavior specificed in the rebar.config file of using make as the command.