Fixing relative path issues left over from flatjar era

Use plugin_path and pattern_path

closes 1377