PackageUtils.prepare: try cwd for pkgname if nothing else to go by