fix function definition in install script