Work around BSD rmdir(1)