Fixed error in check if installation existed