Added fix for handling negative version numbers