diff --git a/components/common/cpp/src/configuration.cpp b/components/common/cpp/src/configuration.cpp
index 287bdfc52588b5bc7075da71f31d4e14158046fa..a302d606bc32d8d2cd1ee8cc18b66387beab54bf 100644
--- a/components/common/cpp/src/configuration.cpp
+++ b/components/common/cpp/src/configuration.cpp
@@ -140,7 +140,7 @@ static bool findConfiguration(const string &file, const vector<string> &paths,
 	bool found = false;
 	
 	if (file.length() > 0) {
-		f = mergeConfig(file);
+		f = mergeConfig(file.substr(1,file.length()-2));
 		found |= f;
 
 		if (!f) {
@@ -251,7 +251,7 @@ vector<string> ftl::configure(int argc, char **argv, const std::string &app) {
 		paths.push_back(argv[0]);
 	}
 	
-	if (!findConfiguration(options["config"].substr(1,options["config"].length()-2), paths, app)) {
+	if (!findConfiguration(options["config"], paths, app)) {
 		LOG(FATAL) << "Could not find any configuration!";
 	}
 	process_options(options);