[test] Fix `shell` not found error

Replace `shell find` with regexp.