OTA 1.x to 2.0 Collections

To avoid OS compatibility issues:
var dir = utils.getFile(targetDir, 'apps', 'collection', 'collections');