Use correct MachineName function
Use truncated instance id; fallback to machine name