Harlequins director of rugby Connor O'Shea praised the "mature attitude" of his players after their hard-fought 16-9 win at Biarritz.