FQDN environments

Fix: deal with getHostname() returning different results on different platforms

This PR fixes a problem when getHostname() returns a fully-qualified domain name (FQDN).  When this happens, Storyplayer looks for both an environment and (potentially) an environment file that matches the FQDN.  With this fix, whenever we get a FQDN, we strip off any domain information.