move shellescape to shell handling code
improved extra_grep