safe bash based remote_process_exists