fixes #20. Adding some logic to handle the new download file structure. this passes tests on rhel6