shell/hugo: improve hugo site pat detection logic.