sde-reschedule: silence ENOTDIR errors from rmdir()

and sightly refactor the remove_package() function