buildbot: reset to upstream known revision

The current head is often not available in the main repo. So this scripts search for a common base revision and reset to this one.
Please keep care, pressing strg-c now may result in a git reset --soft