execute if executable, read if not