Locate and open your TIBCO BW bwengine.tra file typlically under TIBCO_HOME/bw/5.12/bin/bwengine.tra (Linux environment)
Look for the line that states:
*** Common variables. Modify these only. ***
Add the following line right after that section
tibco.deployment=%tibco.deployment%
...