fix appPath undefined in Gruntfile.js