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