Strip trailing slash from subpath's if they exist when creating filenames.