added subdirectory support to subgenerators and fixed missing view.ejs file