Fix 'local variable 'x' referenced before assignment' error

Fixes #36

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge pull request #38 from djs55/fix-install-wizard2

Fix 'local variable 'x' referenced before assignment' error