Fix for JENKINS-22673

This fixes the archiving for nested multi-module sites. 
It ascends the maven project structure from the current (nested) module until the maven pom of the Jenkins root module. Each time it goes up one level, it prefixes the output path with the current artifactId.