Make undefined var behaviour configurable