build: import erlang.mk

- uses erlang.mk with upstream patch #139 for common_test support
- removes script creation but this can be added into erlang.mk relatively easily (see #24 )