Musharraf strives to avoid clash with Islamic groups