Update erlang.mk with a newer version understanding recursion

This is needed for a proper rebuild.
Add default application configuration and +sanity

Add a modules section. Add a registered section.
Fix missing brace.
Merge pull request #2 from jlouis/reltool-fixes

Reltool fixes