This was duplicated a few blocks down

You actually want it near the end when chaining together $PATH. Removing the earlier duplicated instance.