storing files list in temporary file

When file list too large we can't pass via arguments flag, so we should store it elsewhere.