Fix bug in cmake macro 'do_glob_directory'.