Fix 'rebar generate' regression (#253)
Fix 'rebar generate' regression (#253)

If the directory we're about to process contains
reltool.config[.script] and the command to be applied is
'generate', then it's safe to process. We do this to retain the
behavior of specifying {sub_dirs, ["rel"]} and have "rebar generate"
pick up rel/reltool.config[.script]. Without this workaround you'd
have to run "rebar -r generate" (which you don't want to do if you
have deps or other sub_dirs) or "cd rel && rebar generate".

choptastic/rebar,rebar/rebar,blt/rebar3,rebar/rebar,dcarastan/rebar,syl20bnr/rebar,platinumthinker/rebar,rebar/rebar3,lrascao/rebar,K2InformaticsGmbH/rebar,K2InformaticsGmbH/rebar,apache/couchdb-rebar,SiDen/rebar,syl20bnr/rebar,csyangchen/rebar,paulo-ferraz-oliveira/rebar,CMoH/rebar,project-fifo/rebar3,cloudant/couchdb-rebar,norton/rebar,djnym/rebar3,matwey/rebar,RubberCthulhu/rebar,macintux/rebar,cloudant/couchdb-rebar,paulo-ferraz-oliveira/rebar,processone/rebar3,GabrielNicolasAvellaneda/rebar,linearregression/rebar3,bsmr-erlang/rebar,K2InformaticsGmbH/rebar,GabrielNicolasAvellaneda/rebar,evnix/rebar,cloudant/couchdb-rebar,oubiwann/rebar,apache/couchdb-rebar,fishcakez/rebar3,choptastic/rebar,jacktang/rebar,lrascao/rebar,sile/rebar3,lrascao/rebar,paulo-ferraz-oliveira/rebar,linearregression/rebar3,SiDen/rebar,csyangchen/rebar,erlang/rebar3,K2InformaticsGmbH/rebar,beni55/rebar,bsmr-erlang/rebar,ferd/rebar3,fauxsoup/rebar3,lrascao/rebar,norton/rebar3,vladdu/rebar3,norton/rebar,zugolosian/rebar3,walrusVision/rebar3,walrusVision/rebar3,CMoH/rebar,tsloughter/rebar3,lrascao/rebar,blt/rebar3,dcarastan/rebar,macintux/rebar,surik/rebar3,dcarastan/rebar,jbalint/rebar3,CMoH/rebar,kellymclaughlin/rebar3,processone/rebar3,saleyn/rebar3,syl20bnr/rebar,lrascao/rebar3,matwey/rebar,sile/rebar3,jacktang/rebar,shkumagai/rebar,fabiankrol/rebar3,RubberCthulhu/rebar,choptastic/rebar,evnix/rebar,scatterbrain/rebar,lpgauth/rebar,platinumthinker/rebar,matwey/rebar,platinumthinker/rebar,lpgauth/rebar,beni55/rebar,evnix/rebar,apache/couchdb-rebar,csyangchen/rebar,rebar/rebar,shkumagai/rebar,scatterbrain/rebar,jbalint/rebar3,oubiwann/rebar,zugolosian/rebar3,benoitc/rebar3,surik/rebar3,GabrielNicolasAvellaneda/rebar,matwey/rebar,jacktang/rebar,macintux/rebar,K2InformaticsGmbH/rebar,benoitc/rebar3,project-fifo/rebar3,shkumagai/rebar,norton/rebar,SiDen/rebar,fabiankrol/rebar3,matwey/rebar,norton/rebar,fauxsoup/rebar3,bsmr-erlang/rebar,rebar/rebar3,scatterbrain/rebar,lpgauth/rebar,oubiwann/rebar,bsmr-erlang/rebar,beni55/rebar