fix bug due to change in number of return values from fileparts

* see e.g. http://www.mathworks.co.uk/matlabcentral/answers/25236