Fixed the domain creation code for domains without an extension. For local development for example.
Merge pull request #14 from tomvo/master

Fixed the domain creation code for domains without an extension