Fix xar deployment; permissions upon save