Globbing was not working. One more loop solves it.