simplified _r9e_short_hostname to not require a fork