Make these more robust in terms of form of passed filename.

These can now handle the input string either with or without .mat at the end of the passed filename.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>