Migrate to gitdir structure