packaging: fixed issues with setup logic

Bug-Url: https://bugzilla.redhat.com/1047521
Bug-Url: https://bugzilla.redhat.com/1047125
Bug-Url: https://bugzilla.redhat.com/1047117
Change-Id: I35be9a7bbf46ff99885d8ade800fcaa8706aa44f
Signed-off-by: Yaniv Dary <ydary@redhat.com>
Signed-off-by: Yedidyah Bar David <didi@redhat.com>