Fix join queries in local mode: hadoop should not be called.