Harry Kane scored the winner as Bayern Munich beat Elversberg 2-1, moving to seven points from three matches in the German league.