fixed incorrect parameters on collectScanDirs (scanDependencies can be null).