ARGH, my bad! Correction to the previous fix: we should rely on "gem env gemdir", which is more reliable across the board (see, for example, Rubinius!).