Fix offline pkg script.