Fix detached git state in bash prompt