lib/ems_config: indentation and whitespaces
lib/ems_config: fix temp dir creation

Sometimes the temp directory was not created and this led to a
segmentation fault.