Adding delete_empty_dirs option