Fix error that includes index.js to index.js if it exists at the generating process. Added process.exit when corresponds