Fixed bug with view directory missing from generator