Fix finding of external commands