Fixed final slash adding on folder name