Fix non-existent errno raised in open_resource

I think the intention was to raise ENOEXIST - and while I see references to that errno in a google search, the standard errno in this case is ENOENT.