fixing issue #30
fixing issue #31
added trim() to directory names in phpcpd exclude parameter (related to issue #31)