fix and improve phenotype download.
fix paths in gbs download function.