Prevent double slashes in URLs when using the API

Otherwise, the following:

  beefy({ cwd: root, entries: ['index.js'] })

Appears to be resulting in this tag on the default index page:

  <script src="//index.js" type="text/javascript"></script>
style nit
2.0.1