modify hostname template file to hostname.erb