include options when writing erl file, update makefile to use global rebar