Updated script to get machine name to remove (R). Updated linux rule to be the same as mac.