Add access to HOSTNAME enviroment variable

$HOSTNAME is a bash specific variable, and not exported by default.

This PR will check to see if the BASH $HOSTNAME is available, otherwise set it using the hostname command. 

Then, EXPORT this variable for access using the ENV filter.