removed the slash for cases when folder name is empty