Grunt task to traverse a folder and flatten it to a JSON representation