Bypass Authentication if run from CLI

This stopped email reports from being sent which meant I didn't realise
I'd lost a cow for over a week. Costly bug.