Debug mode, tiny rmDir fixes