Mauricio Pellegrino admits he was "relieved" as Southampton clambered out of the relegation zone with victory over West Brom at The Hawthorns.