Fix .ks and scripts to work with packages