fixed preinstall hook scripts test error