changed so that for vcf file it creates files in the working directory