updating loadConfig helper to support options files with multiple task configs