diff --git a/lib/config.js b/lib/config.js
index <HASH>..<HASH> 100644
--- a/lib/config.js
+++ b/lib/config.js
@@ -4,6 +4,13 @@ var fs = require('fs');
 var extend = require('extend');
 var path = require('path');
 
+// Create the cfg dir if it does not exist
+/* istanbul ignore next: Simple directory creation, we know it will work. */
+var cfgDirPath = path.resolve(__dirname, '../cfg');
+if (!fs.existsSync(cfgDirPath)) {
+    fs.mkdirSync(cfgDirPath);
+}
+
 var defaultConfig = {
     host: 'localhost',
     port: 9090,
@@ -63,14 +70,6 @@ var config = null;
 var filteredConfig = null;
 var defaultConfigCopy = extend(true, {}, defaultConfig);
 
-// Create the cfg dir if it does not exist
-if (!process.env.browser) {
-    var cfgDirPath = path.resolve(__dirname, '..', 'cfg');
-    if (!fs.existsSync(cfgDirPath)) {
-        fs.mkdirSync(cfgDirPath);
-    }
-}
-
 // Load user config if it exists, and merge it
 if (fs.existsSync('cfg/nodecg.json')) {
     var rawUserConfigFile = fs.readFileSync('cfg/nodecg.json', 'utf8');
[config] Remove browserify check. We have a separate lib for the broweserified config now.