added HOSTNAME overwrite for tempdir