Update file.rb

Get the FQDN without shelling out and running hostname.