Feature prune: fix sed pipe

Also only prune if there are branches to prune

Also .gitignore fix to hide plugins folder