Placed 'X is already installed' message into an elif statement