Fix cache dir creation to allow relative paths for JULIA_PKGDIR

* Change cachedir creation to allow relative paths for JULIA_PKGDIR
* Change pkgroot => _pkgroot, to discourage use outside of pkg/dir.jl

CC: @StefanKarpinski