The GAMMALIB_CALDB environment variable takes precedence over the CALDB environment variable.

This was the initial intention, but the code did the opposite.