Fix #294 - Failure to unlink directories should return an EPERM error
Merge pull request #295 from gideonthomas/issue294

Fix #294 - Failure to unlink directories should return an EPERM error