Modified and tested installer script

Testing revealed issues and typos.
-Fixed variables in IF statements
-Modified IF statements
-Modified mimeapps.list location and routine
-Other misc. fixes