More robust installation process with retry of petalsesb installation