Fixes permission issue of preinst script