Fixed some detection output

Piping output of the `type` command (and stderr) to `/dev/null`