Fix exception handling for environment variable parsing
On our Alma 9 setup we had (for some reason) an environment variable set as
BASH_FUNC_ml%%=() { module ml "$@"
}
This caused GIPHT to crash. This fixes the exception handling for such cases.
Edited by Sebastien Wertz