Robotic Shepherding in Cluttered and Unknown Environments using Control Barrier Functions