Prevent using names of existing modules as application name for dancer script.

Tested patch for issue #1037.