Read commit file properly