if (process.env.SUPERSTRING_USE_BROWSER_VERSION) {
  module.exports = require('./browser');
} else {
  try {
    module.exports = require('./build/Release/superstring.node')
  } catch (e) {
    module.exports = require('./build/Debug/superstring.node')
  }
}

if (process.env.SUPERSTRING_USE_BROWSER_VERSION) {
  module.exports = require('./browser');
} else {
  try {
    module.exports = require('./build/Release/superstring.node')
  } catch (e1) {
    try {
      module.exports = require('./build/Debug/superstring.node')
    } catch (e2) {
      throw e1
    }
  }
}

Throw original error if debug module cannot be found
Throw original error if debug module cannot be found

Otherwise all errors end up looking like a problem finding the debug
module, which often isn't the case.
