fix empty dirs not existing after committing/restoring repos