Fix bug in grunt build script