Correct precedence of GAMMALIB_CALDB over CALDB (Bug #1094)

GAMMALIB_CALDB should take precedence over CALDB, yet so far the opposite was true. This has now been corrected for.