Updated build_deps script, added more paranoia checks to rebar.config and reused a bit of common glue.  Build completes now without errors.