check  is defined in earlier if statement to prevent undef error
Merge pull request #101 from duckduckgo/zaahir/duckpan-fix

Check $localver is defined in earlier if statement to prevent undef error