karasz: removed spurious grep and wc from applications checking.