bash script for dynamically setting environment variables used by perforce clients