fix issue where kickstart file can be dir [GH-13]