[script] do not run out of file descriptors if rpm has thousands of files

Signed-off-by: Juha Kallioinen <juha.kallioinen@jolla.com>