fixed digital ocean x64 hostnames
removed function keyword for portability
fixed as_root function

* "$@" is the correct way to refer to all args (not $*)