Add detached HEAD detection for "* (detached from "

When testing on Fedora 19 (Git version 1.8.3.1) I got errors because detached HEAD displays as "(detached from " instead of "(no branch)".