make grep deprecation more universal