My copypasta on the clean_up function had real tabs; replaced with spaces.
It helps if I include the -rf option to rm while removing a directory.