New MATLAB compatibility fix for fileparts()