doAllNeededFits is now compatible with either Mac or PC

Signed-off-by: Lindsey <glickfeld@neuro.duke.edu>