Correctly find both internal and external tasks

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>