MDLSITE-2712 fix problem calculating branch ages against integration

- --boundary was returning non-target commits.
- small cleanup of current directory.
- simplified to always look for ancestor from HEAD (already checked-out)
- for integration.git checks, perform them since ancestor, not tip.
- for moodle.git checks, perform them since tip (as was previously).