Only add extra trailing slashes to the end of the directory if they do not already exist