In fact it should work, but the format is a bit different.
The correct format is ${my_env_var} instead of $my_env_var.
You need relatively new build for this to work.
Check you change log files for lines like this one:
“Ability to specify environment variables in bitmap file names and other assets with ${var}”
to verify that the build you’re using has this feature.