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.

Edit: Now I managed to make this pull request across forks, so it should be easier to apply.