fixed downloadurl for subdirectory