Fix and drastically clean up install scripts.