Fix bug in prune that deletes all backups if NUM_TO_KEEP is not set