Fix issue with preinstall script