Fixed issue reading config when running from Command line.