Fix script permissions in download_only operation