Use lstat() rather than stat() when searching for executable files.
tree5f58444677e3d8ea8799e3dd64a07ecd65c04bf4
-rwxr-xr-x 1094 0publish-gui
-rw-r--r-- 142972 0publish-gui.glade
-rw-r--r-- 1127 0publish-gui.xml
-rw-r--r-- 18007 COPYING
-rw-r--r-- 9581 archive.py
-rw-r--r-- 8278 implementation.py
-rw-r--r-- 3713 interface.xsl
-rw-r--r-- 18016 main.py
-rw-r--r-- 4160 requires.py
-rw-r--r-- 5191 signing.py
drwxr-xr-x - tests
-rw-r--r-- 4426 xmltools.py