Build reco and log dir if needed