Common setenv.sh for bas and sp