Various bug fixes.

Resolved issue with the latest available version check. Also corrected the behaviour of enabling or disabling the download latest firefox variable.