Fix #20, ignore (no branch) in detached state

Fixes #20 
----------
Add:
 * Check for (no branch) which occurs when repo is in a detached state
 * Fixtures for the specs to test detached state