change $hostname to HOSTNAME

This allows the local script to parse HOSTNAME and replace it with the entry in NIS, as opposed to the the remote system's *actual* hostname (which may not be resolvable from the origin machine)