Resolved unnecessary differences between master and slave install scripts.

All this commit does is resolve unnecessary differences between the master and slave install scripts, fix some tabulation, remove some cruft, and merged lines dependent on ../../.git .