WIP: Converted the post build scripts to grunt/node

Fixes #6135