Fixed Python2.6 incompatibility issues for 7.0

This needs to be wrapped in a `set()` call, otherwise the `add` calls fail altogether, and the reliance on being able to add the same path multiple time with no effect also blows up.