Fix off-by-one error when using the len(prefix) to do slicing.

This fixes errors such as:
Could not find a valid timestamp from the index: logstash-2013.09.08
Could not find a valid timestamp from the index: logstash-2013.09.09
Could not find a valid timestamp from the index: logstash-2013.09.10
Could not find a valid timestamp from the index: logstash-2013.09.11
Could not find a valid timestamp from the index: logstash-2013.09.12
... even though the prefix and separator are correct.
Merge pull request #4 from LeftyBC/patch-1

Fix off-by-one error when using the len(prefix) to do slicing.