Guard used environment variables
As reported on IRC, a devtools user had lost data on their machine because they had $WORKDIR
set which is treated as internal env var in devtools and cleaned up on exit/error withouth any guards.
We should:
- audit the code if there are more critical env usages like this
- guard env variables and see if there are any name collisions with the users ENV
- prefix the variables with something like
$(get_random_prefix)_DEVTOOLS_WORKSPACE