server.js: Fixed bug related to initialization of 'active' directories