Resolve issue when config.js does not exist, fixes #1326