allow plugin script to look for plugins in symlinks
Fix template path from clearing out templates