generalized console.sh to retrieve hostname from hostname -s