fixed bug when downloading non rpm/deb files