Separated install from mount process and added checks to prevent installing each time the code is run.