Fix a bug in the environment script for pythia 8.