Log filename, line number and function name in debug log

Signed-off-by: Tomas Hozza <thozza@redhat.com>
Make copy of patches dict when applying them

We should not need this in the future after we rework the mess in PatchHelper

fixes issue #81

Signed-off-by: Tomas Hozza <thozza@redhat.com>