Convert rebar.config.script logic to standard rebar.config