Finally tracked down this error.

Make sure path is set before looking for installed programs