add opcodedir env for self contained builds on windows