Fix for #1102 - new phpmd structure

PHPMD, via composer, has changed it's file structure and switched to namespace based classes. This fix determines which version of PHPMD is present, and then uses the proper file paths/class names.