composer: check it is not a temporary file before trying to archive