Check for .stackenv

* Skip sourcing .stackenv if it doesn't exist
* Remove .stackenv at end

Change-Id: Icc2e8e4ea6fada5f9d0b906fedacdbe2c1b3b320
Merge "Check for .stackenv"
Merge remote-tracking branch 'm_src_repo/citrix-fixes' into build-temp