chore(git): Improved commit message script when being used as git hook.