update function: file.grep

Add exception handling for cmd.run_all