Ignore detached heads
Fix grep syntax
Guard against syntax error with quoting
Merge pull request #44 from VividCortex/issues/43-detached-head

Ignore detached heads