Only check once for insecure cookie jar file
Improve OS X compatibility