get latest erlang.mk

 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