Minor fixes to RunTask.py