Trim error was thrown when linked ember-cli had detached 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.

This bug only affects people hacking on ember-cli itself.