Support overriding smarty location with SMARTY_PATH. Fix bug missing global options in esi-loader