Check if the package is installed before downloading it