Skip pkg-config if OSError EACCES is raised
Created originally on Bitbucket by robyoung
Was already merged in Bitbucket before import, marked as merged by the import user
If one of the directories in the PATH is not executable by the current user then EACCES will be raised.