use global String.replace, to replace multiple occurrences of __name__, not just the first one.

Allows for "app/modules/__name__/__name__-controller" structures.