Fixes the install procedure by using a temporary script. bash can't
invoke interactive scripts when piping the script from STDIN.