Handle the case where templates dir does not exist