Fix getGitVersion showing a clean repo as modified

``split('\n')`` on an empty string results in a list containing an empty string, not an empty list. This causes the version (``python setup.py --version``) to have a "+" at the end, even when the tree is clean.

Using ``--porcelain`` additionally protects against things like user color settings.