Fix isRunningLocally logic. Previous commit is bad.