Fixed logic for checking that local whisper files are valid.