check for errno.EACCES directly instead of parsing output

Signed-off-by: Alfredo Deza <alfredo@deza.pe>