Use $STACK to detect stack
Support prebuilt erlang on cedar-14