Fixed blank line in config file bug reported by Malcolm Hinsley.
Fixed Mac OS wc parsing issue.