Remove redundant expansion of directory