replace deprecated 'xargs -i' by 'xargs -I'

fixes pull #4130 to work on Mac.