remove trailing '/' when parsing data folder