Fix var test in run-script
Set correct env for $HOME