removed spurious error message
more efficient checking for already-installed packages