Fix off-by-one error

The array 'suffs' has four entries. The nested for-loop, however, only
traversed up to the third entry and failed to reach the fourth entry
'.tgz'.

Signed-off-by: David Vest <davve@opera.com>
Future proof array iteration

Instead of relying on a constant being up-to-date with the length of
an specific array, add a NULL entry last to the array and iterate up
to that instead.

Signed-off-by: David Vest <davve@opera.com>
Merge pull request #64 from doomdavve/fix-off-by-one-take-two

Fix off-by-one error