fix to qinstall script for mac