Coder review of install file.

Fixed all reported errors. 
The change was suggested by Coder. I didn't know about it. Also, I didn't know about this language feature of PHP, namely, putting the name of a function into a variable, then calling that function through the variable.