make package install script more generic