Add a use_master_when_local option to allow remote execution while using a local file_client