Added more logic to verifySignature function, testing is impossible right now due to some annoying issues with packages not playing nicely. Will test on my Ubuntu box later