get latest erlang.mk (re: issue 47)

 Integrated some code from [https://github.com/extend/erlang.mk/issues/2#issuecomment-25531582](https://github.com/extend/erlang.mk/issues/2#issuecomment-25531582)  

/Peter