fix installer for linux mint and detect if preinstall does not work