Implement global part root directoy allocation.

Makes it possible to have two part of the same kind with the same name
in the same project(s).