Added support for accessProc and mapped X_OK to directories