[BUG #7810] add shelljs third party npm module (and remove mkdirp)
[BUG #7810] use shelljs for synchronous exec
[BUG #7810] minor fix for platform independence