themes/gitstatus: Fix where it shows extra a space

For example, if $HOME is not a git repository, it should show:

    ~>

But previously it incorrectly showed:

    ~ >

This commit makes it aware of such case, inserting the space
accordingly instead of always adding a space.