added Not found logic
top_dir is more loose