Bug fixes to RunModels.R on Mac

This fixes two bugs that I found on Mac