Clean up old test code. Add local grep syscall functionality