fix bug when node template was only locally installed and improve fallback