Fixed bug when detecting open patches

Also improved the logging a bit

Change-Id: I197470c60e1d7a0270361d554afa9d38e75bcbc9
Signed-off-by: David Caro <dcaroest@redhat.com>