Fix bug 832165, make GAIA_PATH works again