Moved the main liscencing check code into an else block.
I'll continue working on this when I'm actually on a debian system and it becomes easier to debug.