Replace '$MACHTYPE' with '$system_os' to enhance grepping os type.