Fixed controller generator in builder of type modules

Controller builder was initialized with an nonexistent path resulting in following error:
```
Error: Unable to write to '../test-project/apps/frontend/controllers/IndexController.php'
```
Accordingly, `IndexController` was not generated.