Use access() instead of stat() for checking whether scripts exist.
[tinc] / src / cygwin /
drwxr-xr-x   ..
-rw-r--r-- 6880 device.c