use type lem instead of [ -x lem ] in Holmakefiles

the latter seems not to work, since I guess it doesn't search in the
$PATH, whereas type is supposed to treat the argument as if it were a
command you wrote at the shell.