Handle multiple config files locations. Define global __appname__ too.
Do not repeat yourself, use variables instead of string literals.