title: 'build' is not recognized as an internal or external command - Using ElectronJS / electron-builder
body: <p>I recently updated my electronJS app to a higher version together with electron-builder. 
  I have no issues running the app with "npm start", however when I try to build it using electron-builder I get the following error when running "npm run dist":</p>
  
  <blockquote>
    <p>$ npm run dist</p>
    
    <blockquote>
      <p>myapp@1.0.0 dist C:\Projects\myapp
      build</p>
    </blockquote>
    
    <p>'build' is not recognized as an internal or external command, operable
    program or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm
    ERR! myapp@1.0.0 dist: <code>build</code> npm ERR! Exit status 1 npm ERR! npm
    ERR! Failed at the myapp@1.0.0 dist script. npm ERR! This is probably
    not a problem with npm. There is likely additional logging output
    above.</p>
    
    <p>npm ERR! A complete log of this run can be found in: npm ERR!<br>
    C:\Users\User\AppData\Roaming\npm-cache_logs\2019-12-05T11_35_33_988Z-debug.log</p>
  </blockquote>
  
  <p>package.json:</p>
  
  <pre><code>{
    "name": "myapp",
    "version": "1.1.0",
    "description": "none",
    "main": "main.js",
    "scripts": {
      "start": "electron .",
      "dist": "build",
      "postinstall": "electron-builder install-app-deps"
    },
    "build": {
      "appId": "Myapp.com",
      "asar": true,
      "asarUnpack": [
        "configuration/**/*",
        "output/**/*",
        "appdata/**/*",
        "node_modules/easy-pdf-merge/**/*"
      ]
    },
    "repository": {
      "type": "git",
      "url": ""
    },
    "author": "",
    "license": "ISC",
    "homepage": "",
    "dependencies": {
      "axios": "^0.19.0",
      "cryptr": "^6.0.1",
      "easy-pdf-merge": "^0.2.0",
      "edit-json-file": "^1.2.0",
      "electron-log": "^3.0.9",
      "electron-updater": "^4.2.0",
      "eslint": "^5.12.0",
      "exceljs": "^1.6.3",
      "googleapis": "^27.0.0",
      "mustache": "^3.0.1",
      "node-localstorage": "^2.1.5",
      "npm": "^6.5.0",
      "pdf-table-extractor": "^1.0.3",
      "popper.js": "^1.15.0",
      "sqlite3": "^4.0.4",
      "tippy.js": "^4.3.4",
      "universal-analytics": "^0.4.20",
      "uuid": "^3.3.3",
      "webpack": "^4.28.0",
      "winston": "^3.1.0"
    },
    "devDependencies": {
      "electron": "^7.1.3",
      "electron-builder": "^21.2.0"
    }
  }
  </code></pre>
  
  <p>Node version: 12.13.1
  npm version: 6.12.1</p>