Fix build issue with remote repo