Brodies wrests top four Scot spot from Shepherds