Fix legacy_plugin so it works with assets_path/assets_dir
and also when css/js file URLs do not contain cache buster