fix in case project doesn't start at repo root.

I came up with the following fix for some of our legacy projects and
https://issues.jenkins-ci.org/browse/JENKINS-24373

Maybe there is a more elegant solution (e.g. getting the „offset“ from
the SCM), but as I’m new to jenkins plugin dev I would need some
pointers.