Fix #377 Installer suggests incorrect cookie domain

The logic for this was backwards. If `my_inet_pton($cookiedomain)` returns false, or `strpos($cookiedomain, '.')` returns anything but true, we have an invalid cookie domain.
Merge pull request #391 from nmalcolm/fix-377

Fix #377 Installer suggests incorrect cookie domain