added splitpath.m