Check is file is executable (instead of existing) to define if it should be executed
Check is file is executable (instead of existing) to define if it should be executed. Introduce 'which' function to check executable in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games