use putenv() instead of relying on Bash inline variables

fixes #1086