scripts: Improve git get prev commit script to handle multiple lines
scripts: Rename git-getprevcommitforline to git-getparenthash