config_dir is not calculated from Domain_config

Changes in create_default_domain. Now looking in correct path
for default domain files.

Fixed some naming issues. "...for file in.." might conflict with 
 keyword file.