Fix detecting executables