path and templatePath requires value when defined as options

Options are optional so path and templatePath requires value when they are defined this way and not through config.