auto detect cookie files instead of specifying in the command line