tools/license-detector: refactor to move filters to separate files and to support license headers (commit: e1d0369)