Add debugging statements when getting dynamic version
This MR patches redhat/source and redhat/build to emit a bunch of debugging statements when extracting dynamic version information for Python projects, to help developers debug when everthing doesn't work out-of-the-box.