rez-env:  add flag to add additional lines of bash code to the newly created environment script
rez_release: fix a few bugs related to the switch to python directory functions