Fix bug that shows false positives when the scm urls of two jobs share the same prefix, add test