properly splits filename on all platforms when setting a checkpoint

closes #354