Made bash software installer much more robust and clean