Fixing generation of the default config file

The case statement in the default.erb did not read the correct id
variable. Theregfore I have introduced clone of the id variable called
myid which is read correctly now.