Perturbation analysis of a general polytropic homologously collapsing stellar core