Bug fixes for kickstart postinstall script