Make mod recursion sensible

Reworked the mod deletion to recurse in a manner that is not bat-shit
insane.

Signed-off-by: Tristen Allen <spyboticsguy@gmail.com>