Fix scope issues in DeleteInstall

$cookiename would not get globalised since DeleteInstall was including Settings.php by itself, causing Admin to not get logged in and/or some undefined indexes.

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Merge pull request #2250 from Dragooon/release-2.1

Fix scope issues in DeleteInstall