Change setup_environment to avoid conflicting .pkg directories.