balancer: fix logic in SGEStats._count_tasks

SGEStats._count_tasks in some situations would not parse the 'tasks'
output from qstat correctly given that it expected either a list of
single task ids or a single task range specification like '1-10:1'.
Updated _count_tasks to support task lists that contain both single task
ids and task id range specifications.

closes gh-199