allow any attr for add_dir_entry
fix compiler warning
config: support --label option