Changed order of app_config paths calls to make it work with newer rails