Detect if the branch is dirty

Ensures that VCS_TICK reflects the reality