remove empty dirs for rules and registration; submodule add failed