Added missing variable which caused exception when file raised IOError. Fixes #7
Merge pull request #8 from jarekps/issue_7

Added missing variable which caused exception when file raised IOError. Fixes #7