/* Append config file into config object
function file2obj(file) {
		if(!fs.existsSync(file)) {
			return {};
		}
		try {
			var buffer = JSON.parse(fs.readFileSync(file), {'encoding':'utf8'});
			if(!(buffer && (typeof buffer === 'object'))) {
				throw new TypeError('Failed to parse file as an object: ' + file);
			}
			return buffer;
		} catch(e) {
			throw new TypeError("Failed to read file " + file + ": " + e);
		}
	}