Some systems do not have a FQDN, but instead have just a bare hostname. Users expect
node['hostname'] to be properly set, but the regex for capturing this was incorrect
for this corner case.
Merge pull request #385 from juliandunn/fix-bare-hostnames

Fix node['hostname'] on systems with only a bare hostname.