Path resolution logic fix for .plugin() method