improve error message for  parsing errors.

The option parsing installer code is not constructing the error message correctly. This patch fixes it to include more useful information.

This is in response to #339