fix file sink/source to handle multiple versions of matlab across different OSs