Fix filenames with multiple dots #90

Signed-off-by: Tom Diggle <tom@tomdiggle.com>