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

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