Change how we do download parsing to use shell built-ins,
fixes an issue running aria2c in a chroot environment where "ps" may not be available