let rm_f x =
  if sys_file_exists x then rm x