use Pkg.dir(path) instead of joinpath(Pkg.dir(),path)