Merge download and get functions, fix overzealous sed