replacing deprecated julia_pkgdir() with Pkg.dir()