Fix unrebased PRs detection condition
Restore check_directed_links() and read_links() as static methods

- Fix test_unrebased_prs unit tests