Rewrite FindCommitByCommitMessage to better find by changeset Id

(for better performance and maintainability)
Merge pull request #462 from pmiossec/rewrite_find_by_commit_message

Rewrite FindCommitByCommitMessage to better find by changeset Id