Fix bug in PS1 when git is not installed