slate.js: /bin/hostname needs to be trimmed
slate.js: Fix hostname logic