prune and clean local scripts