title: Cypress.io doesn't take index.js despite configuration
body: <p>As in title, I'm not able to use any command from commands.js. BeforeEach in index.js is also not running. My configuration:</p>
  
  <p>cypress.json:</p>
  
  <pre><code>"supportFile": "./support/index.js",
  </code></pre>
  
  <p>index.js:</p>
  
  <pre><code>require('./commands')
  import "./commands"
  
  beforeEach(function () {
      cy.clearLocalStorage();
      cy.visit('');
  })
  </code></pre>
  
  <p>tests are running without beforeach and commands. When I put beforeEach to test file it works. Can it be related to system permissions? I'm using ubuntu.</p>