fixed get cider buffer, by searching for mode instead of regex.