package: escape some variables for Ubuntu and CentOS