Better errno checking

Compare with string representation instead of numeric constant.
Merge pull request #1 from passy/errno

Use errno module instead of inline constant