detect if the package is currently installed to avoid downloading it