Update install script.

Move "then" line to the same line with the if statements.

Test for directory before trying to clone to it.