Change cachedir creation to allow relative paths for JULIA_PKGDIR
Change pkgroot => _pkgroot, to discourage use outside of pkg/dir.jl
Merge pull request #5637 from JuliaLang/kms/versioned_cachedir_update

Fix cache dir creation to allow relative paths for JULIA_PKGDIR