Use ruby tempfile for archive