fix bad substitution bug in fun.sh
add modules/initial/001-hostname.sh

this script will:
set the dynamic hostname if not set correctly
set the hostname= in rc.conf if hostname= is not in rc.conf
set the hostname= correctly if it is different to the HOSTNAME
variable in config