prevent 'template_dir = None' from being passed to apply_lcwd function

re: issue #912