Fixed a plus one error with options.detectLngFromPath