rebar.config.script: fix passing defines in erl_opts

The erlang compile module does not support the option {define, ...} any
more, instead {d, ...} is used.

See: http://www.erlang.org/doc/man/compile.html
netwatch: add simple start/stop eunit test