Add rename_subdir directory and strip_leading_dir functionality.