Fixed bug that occurred when pkgsite not specified