     target = p if _.isString p
     target = _.first(p) if _.isArray p
     target = _.first(_.keys(p)) if isPureObject p
-    
+
     ret.push(p) if reg.test target
 
   ret


  if isPureObject args
    config = args
  else 
    while arg = args.shift()
      switch arg
        when '-browsers'


  c.browsers = ['firefox'] if c.browsers is undefined or c.browsers.length == 0
  c.reportFormat = 'html' if c.reportFormat is undefined

  throw new Error('--selenium-host isn\'t set correctly') if c.seleniumHost is undefined
  throw new Error('-envs aren\'t set correctly.') if c.envHosts is undefined or _.keys(c.envHosts).length < 1
  throw new Error('-paths aren\'t set correctly.') if c.paths is undefined or c.paths.length is 0
