Improved the utility helper and added a unit-y test for download tool selection.