The media path bit is all related to host-specific files (and probably needs host-specific config in most cases. Move it to that section and remove all the app-level config.