Provide suitable error message for build indexes that are out of bounds (#121)

PR is attempting to patch #121
You can specify the type via the `type` parameter:
https://docs.python.org/2/library/optparse.html#optparse.Option.type

Then it will automatically be converted to an int.