fixed the fallback logic for cases when the latest installer is not found.