Use $MACHINENAME instead of $HOST to avoid hostname issues when connecting to wifi networks