Fixed minor error with prune script