Fixed problem reading shapefiles with multiple ‘.’ in filename. Fix suggested by guzly. Resolves issue #151.