fixing prompt if not on a tag and detached from HEAD