Use the simpler version of sys::fs::remove when possible.