Proper write remote using tempfile
Use tempfile for rar inspection