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