Whitespaces in filenames lead to truncated names in commit stats

Having a filename with some whitespaces leads to inconsistent commit stats, as the git output line is being split completely by all whitespaces.

Can be fixed by limiting the desired output array length by 3. 
(so that the remaining whitespaces stay in the filename)