Retrun ENOENT instead of EPERM on some cases