Made the ERL_LIBS definition dynamicly generated.