Fix to handle cwd option of ngtemplates