Add more useful logging to fallback scripts variable config
In legacy/trac#29100 (moved), nickm says:
As a followup, I suggest changing the definition of getvar_conf() so that on error, it gives a more useful explaining what the problem is, and changing the definition of opt() so that it turns the empty string and/or a missing option into None, but reports errors otherwise.