Normalized getMachineName for Windows and Unix.