fixing inconsistencies in install.sh and making installation cross-platform (Linux/Mac OS X).