try to add files to excludes after writing so they actually exist