Merge pull request #2 from passy/xdg-fix

Correct use of XDG_CONFIG_HOME
Use errno module instead of inline constant