Fix post compile hooks
Merge pull request #9 from tolbrino/tb-fix-postcompile

Fix post compile hooks
set REBAR env from rebar.config.script
more robust rebar post_hook