valgrind.py: Added platform argument to runToolGetErrors function.