Remove the trailing slash from folder name