bed: Replace `$pkgname` with the actual package name.
slowhttptest: Quote `$pkgdir`.