if :ensure is set, try to install package before testing for availability