Accept empty config file or one with only comments

I've run the tests and also tested with empty and comment-only configs and it seems to work OK, but please review.