Need to check e.errno instead of os.errno. Fixes #8548
Merge pull request #8550 from sivel/issue/8548

wait_for module: check e.errno instead of os.errno. Fixes #8548