fixed pathsplitting. now uses os.sep instead of '/'