Remove redundant path expansion