[Download] Added detection of applet or stand alone mode