Fixes in new repo detecting