fixing parameters definitions
when running rake file as a stand alone then the condition inside the before is bot needed. If not (as we run it) it is needed