fixed minor issues in install scripts, made minor adjustments for linux.