Ex-Aston Villa midfielder Conor Hourihane will take charge at Barnsley until the end of the season after Darrell Clarke was sacked.