style(config): whitespace and var scope

Removed trailing whitespace and moved configSrc declaration outside of the try/catch block