Ludwig Augustinsson’s late effort ultimately proved enough for Werder Bremen to see off Heidenheim in the Bundesliga relegation play-off.