osdep: create .gem before creating the cache symlink

When bootstrapping, initialize_environment will be called before
any gem got installed, which means that the gem dir does not exist
yet.