refactor linux install script

change tabs to spaces and fix indent

use of bash instead of hardcoded scriptname

change order of variables for user experience