Use command -v instead of type -t.