Fix commands hook to play nice with git-shell's format