Fix bug adding ignored files on publish.