only append to virtualenv activate script once
reduce .encode() calls