Small refactoring of rebar script