Added OSX detection to RMSD