Fixed bugs in config drive configuration file creation.

Change-Id: I194dfac687c57ab3152f170a5497c56813cce724