Fix make from detached head