Blueprint: replace multiple occurences of __name__ with module name

When using a folder structure like below, only the first occurence of ```__name__``` would be replaced by the module name. By using ```String.replace(/__name__/g)```, all occurences are replaced, allowing for a more scalable blueprint structure. 

```
files
|__app
   |__pods
      |____name__
        |____name__-controller.js
```