Fix index line splitting to not cut off filenames.

The splitting for index lines would cut off any filenames that included a
space. This was due to passing '2' to split() where we should have passed '1'.

Testing done: Ran unit tests.

Fixes bug 1533.

Reviewed at https://reviews.reviewboard.org/r/5501/