Fixes variable lookup

Now when a variable is not defined in the local file it used the global
file version
Fix typo
Using AppConfiguration.for sets the configuration prefix attribute based on the config name