Updated installer script to work better.

Signed-off-by: Euan Torano <euantorano@gmail.com>