attempt at fixing/understanding pathname resolutions when given a pathname string containig '.' and '..' ~ should return normalized directory pathname.