Log output of check_cmd() command while it is running

Should prevent buildbot from aborting the build because `make` runs for
too long without outputing anything