Remove trailing slashes from folders