Adding fixes for config.js which will verify pidDirectory in the JSON config files. (See bug #7)