names_to_numbers.rb: fix bug in non-glob operation