Fixed bugs in grunt deployment.