shell/hugo: add hugo executable checking code.