Avoid adding redundant entries to path variables.