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

PR is attempting to patch #121
In which cases the build_number will be not a string? I think it would be better to enforce that it will always be a number.