WIP: Allow to set the .gem's cache dir

FIXME: Not all tests are passing