Conor O'Shea hailed Harlequins' mental strength after beating Bath to secure the last Aviva Premiership play-off spot.