Add filetest access pragma

On systems that use alternate file access schemes, like ACL's, stat()
may lie when checking file permissions. By using the access pragma,
access() is used instead for filetests, yielding correct results in
exchange for a slightly slower runtime.