Used `mkdir` method from `os` lib.

Lib has own method for creating directories.

Isn't `argv[3]` the name of the datafile? Do you create it as a folder?
Fixed import and path-checking.
Merge pull request #1 from jaremikb/patch-1

Used `mkdir` method from `os` lib.