use error code instead of errno for detecting ENOENT, more standard across platforms.
Merge pull request #3 from thehunmonkgroup/enoent-mkdir

use error code instead of errno for detecting ENOENT, more standard