More refinements done to the bug-related-commit detection logic.