Some improvements of installer script