Properly handle detached HEAD state