you already have $GAIA_DIR, why don't you use it instead of `$DIR/..` ?