fix error in downloading course which of slash in name and add folder and file exsit judgement