COOK-4257: Use setenv.sh instead of modifying SMF