core: fix cmp invocation in BSD systems
core: fix cmp invocation in BSD systems

BSD cmp doesn't have the option of reading from stdin, so use process
substitution instead.

tekniklr/oh-my-zsh,tekniklr/oh-my-zsh