Fix configuration file parsing bug

Should take care about missing settings.
Also bump version to 0.1.2.

Signed-off-by: kfei <kfei@kfei.net>