fixes depreciated behavior with FILES_TO_COPY