Remove redundant path info