Validate directory and disk image permissions

- User directory permissions are validated before the script executes
  any commands, and disk image permissions are checked prior to mounting
  any images.