apt-get update first. Install tools *before* using them, use case-insens regex in hostname check