Replace ~/ with ./ for folder references in shelljs.exec() calls.  shelljs.exec always sets the working folder to the same folder as the Gruntfile.js