Used a more reliable way of listing region files

Fixes issue #891