Module git: simplify get_version
Module git: simplify boolean expressions