Fix for GitHub issue #38: compute whether we are ONLINE a little differently