Bad $HOME env variable

Found out that during the phase of saving artifacts the `HOME` variable is set on `/root` and not on `/opt/ruby` as the script expects, and so due to this the artifacts are not saved. But after checking the environment variables in the running container I see that the `HOME` is set properly to `/opt/ruby`.

Don't know if this is acceptable behavior, that the env variables are not propagated, or an issue which need to be taken care of.