Linux uninstall script: Fixed error handling
(merged 925578a75d, f340a91904, 82267be4fd, 301fc38a68 master branch commits)