do not run hostname command. Slow and not compatible with cygwin!