Fix bug in metadata: HOSTNAME variable is a bash variable but not an...
Fix bug in metadata: HOSTNAME variable is a bash variable but not an environment variable, so it is not propagated to subprocesses. The result was empty string in the database. This is now fixed at least for linux and we shall see about the mac