Use access() instead of fopen() to search for PCH
Use access() instead of fopen() to search for PCH

Since all we want to do is find out whether the file exists and can be
read, use the appropriate function.

Signed-off-by: Simon Richter <a81c4837b87e3f24f0a93a4e7a4570dd57cfdbfd@hogyros.de>
Reviewed-by: He Junyan <8f73a735c668918c9613b750d3a88ebf2489599f@inbox.com>
Reviewed-by: Zhigang Gong <e04a7b9b70b1e4c6318cf117dcd1a9056e14b97a@linux.intel.com>

wdv4758h/beignet,wdv4758h/beignet,wdv4758h/beignet,ignatenkobrain/beignet,freedesktop-unofficial-mirror/beignet,zhenyw/beignet,ignatenkobrain/beignet,freedesktop-unofficial-mirror/beignet,wdv4758h/beignet,ignatenkobrain/beignet,ignatenkobrain/beignet,zhenyw/beignet,freedesktop-unofficial-mirror/beignet,zhenyw/beignet,zhenyw/beignet,freedesktop-unofficial-mirror/beignet,wdv4758h/beignet,ignatenkobrain/beignet,zhenyw/beignet