Some fixes to installation scripts.