Get correct gradle home dir in all environments