Conditional sub-directory for download

Instead of so much change, how about keeping that downloadSubDir parameter in that function and doing  something like this:

```javascript
var subDirectory = downloadSubDir;
if (artifactList.release_type != "supported") {
    subDirectory = 'local/' + artifactList.version;
}
```

Wouldn't that solve the issue?