Add directories to PATH only if they exist, and don't re-add them if they're already in PATH.