checks for dirs with only one file recursively