Correctly handle checking distribution when running in local mode