Update DPM

1. removing empty lines: cmakelists.txt

2. update dpmDetector: removing inefficient directory handling codes