adding environment to the rake task

for the rake task to generate HetsInstance if needed was
missing the environment so we can't create the object
Merge branch 'fix_missing_enviorment_in_rake_task' into develop