Added ensure_exist keyword to PathResolver; Ensured downloaded templates has necessary settings file and directories.