Fix errors when displaying prompt on Mac

This is caused by the difference in behavior for `wc` and `expr`. `expr` is
aliased to `gexpr` for now.