Fix pipe access

Signed-off-by: Dima Kuznetsov <dkuznets@redhat.com>