eventscript: check_executable() to centralize stat/perm checks