Trim error were thrown when linked ember-cli had deatched HEAD.

If the contents of the ./git/HEAD file does not return a ref path,
it's a SHA value so that is what will be used.
Merge pull request #641 from WMeldon/master

Trim error was thrown when linked ember-cli had detached HEAD.