opal_errd: improve exiting on failure and use access()
opal_errd: improve exiting on failure and use access()

Sections of the main called exit() with syslog open, improved passing back
failing return value. Removed pointless calls to stat when access was
plenty.
Over all aim to clean the messy main.

Signed-off-by: Cyril Bur <6ce38dade8c4b52fd55c193fae70fd1d1275c3c3@au1.ibm.com>
Signed-off-by: Vasant Hegde <a6d753843573f7bfed5075c1e875b0be8007a0ab@linux.vnet.ibm.com>

leitao/ppc64-diag,leitao/ppc64-diag,leitao/ppc64-diag,leitao/ppc64-diag