Fix exception handling in Gitaly autodetection
In SELinux, the file cannot be written, and Errno::EACCES, not
Errno::ACCESS is thrown.
Edited  by Stan Hu
In SELinux, the file cannot be written, and Errno::EACCES, not
Errno::ACCESS is thrown.