Convert spec folders parameter to JSON object

Converted specfolders parameter to JSON object as per issue https://github.com/linkedin/dustjs/issues/269