Strip trailing slashes from path in config