Fixed permission issues with package installs and fixed the extracting of zip files for packakge install.
Refactored mounting/unmounting of disk images into separate functions.