fixing version number on py3.x

After some deep digging I've finally been able to fix the mysteriously failing version numbers on Travis Python 3.x reports.

A comparison of two file paths wasn't reporting equality anymore due to one being a bytearray and one a decoded string in Python 3.

This is introducing an ugly `if` switch and fixes this issue for Python 3.x, any more elegant solutions are welcome.