Execute checks locally if command_endpoint == local endpoint

fixes #7863