Firefox installer error checking + ditto

Gives two error checking sections from before different exit codes,
adds another check for failing to mount the installer. Switches to cp
to ditto to preserve permissions.