Identify Commit-Id appropriately

If the commits in the GitHub pull request itself had Commit-Ids,
the script would fail. This one makes sure that it always picks the
last commit ID in the message
Added minimal logging