Fix permissions with pkgdir