Improve checking if installation succeeded