Bug 4964/if inventory sending is aborted once gzip asks an interactive question

See http://www.rudder-project.org/redmine/issues/4964