Avoid crashing out early on access error
Avoid crashing out early on access error

Instead of failing with RuntimeError we can fail with a more specific
IOError (2.7) or PermissionError (3.x) at the point of access.
In the most likely case that the file is accessible we save one stat()
call.

dials/dials,dials/dials,dials/dials,dials/dials,dials/dials