BASH script to add an ignore file to empty directories in a work tree recursively