fixed #1301, additional check if shared lib is executable