dirname Convert a full pathname to just a path