Fixed problem reading shapefiles with multiple ‘.’ in filename. Fix sugg...

...ested by guzly. Resolves issue #151.