Use the configuration of given application instance to get the public path rather than the Rails constant